(self.webpackChunkctfd=self.webpackChunkctfd||[]).push([[160],{50488:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AriaComponent",{enumerable:!0,get:function(){return O.install}}),Object.defineProperty(e,"AxisPointerComponent",{enumerable:!0,get:function(){return p.install}}),Object.defineProperty(e,"BrushComponent",{enumerable:!0,get:function(){return h.install}}),Object.defineProperty(e,"CalendarComponent",{enumerable:!0,get:function(){return u.install}}),Object.defineProperty(e,"DataZoomComponent",{enumerable:!0,get:function(){return x.install}}),Object.defineProperty(e,"DataZoomInsideComponent",{enumerable:!0,get:function(){return S.install}}),Object.defineProperty(e,"DataZoomSliderComponent",{enumerable:!0,get:function(){return A.install}}),Object.defineProperty(e,"DatasetComponent",{enumerable:!0,get:function(){return R.install}}),Object.defineProperty(e,"GeoComponent",{enumerable:!0,get:function(){return s.install}}),Object.defineProperty(e,"GraphicComponent",{enumerable:!0,get:function(){return d.install}}),Object.defineProperty(e,"GridComponent",{enumerable:!0,get:function(){return a.install}}),Object.defineProperty(e,"GridSimpleComponent",{enumerable:!0,get:function(){return r.install}}),Object.defineProperty(e,"LegendComponent",{enumerable:!0,get:function(){return C.install}}),Object.defineProperty(e,"LegendPlainComponent",{enumerable:!0,get:function(){return k.install}}),Object.defineProperty(e,"LegendScrollComponent",{enumerable:!0,get:function(){return w.install}}),Object.defineProperty(e,"MarkAreaComponent",{enumerable:!0,get:function(){return _.install}}),Object.defineProperty(e,"MarkLineComponent",{enumerable:!0,get:function(){return b.install}}),Object.defineProperty(e,"MarkPointComponent",{enumerable:!0,get:function(){return y.install}}),Object.defineProperty(e,"ParallelComponent",{enumerable:!0,get:function(){return c.install}}),Object.defineProperty(e,"PolarComponent",{enumerable:!0,get:function(){return i.install}}),Object.defineProperty(e,"RadarComponent",{enumerable:!0,get:function(){return o.install}}),Object.defineProperty(e,"SingleAxisComponent",{enumerable:!0,get:function(){return l.install}}),Object.defineProperty(e,"TimelineComponent",{enumerable:!0,get:function(){return g.install}}),Object.defineProperty(e,"TitleComponent",{enumerable:!0,get:function(){return v.install}}),Object.defineProperty(e,"ToolboxComponent",{enumerable:!0,get:function(){return f.install}}),Object.defineProperty(e,"TooltipComponent",{enumerable:!0,get:function(){return m.install}}),Object.defineProperty(e,"TransformComponent",{enumerable:!0,get:function(){return I.install}}),Object.defineProperty(e,"VisualMapComponent",{enumerable:!0,get:function(){return j.install}}),Object.defineProperty(e,"VisualMapContinuousComponent",{enumerable:!0,get:function(){return T.install}}),Object.defineProperty(e,"VisualMapPiecewiseComponent",{enumerable:!0,get:function(){return F.install}});var r=n(5467),a=n(57073),i=n(702),o=n(25034),s=n(30019),l=n(19443),c=n(32061),u=n(86428),d=n(36577),f=n(94223),m=n(56328),p=n(3150),h=n(35410),v=n(43742),g=n(3654),y=n(73959),b=n(60193),_=n(91866),C=n(56966),w=n(19385),k=n(37281),x=n(79022),S=n(53619),A=n(28505),j=n(41165),T=n(25360),F=n(41162),O=n(90385),I=n(12772),R=n(92296)},99152:(t,e,n)=>{"use strict";Object.defineProperty(e,"X",{value:!0}),e.Z=void 0;var r=s(n(66694)),a=s(n(55046)),i=s(n(71350)),o=s(n(48580));function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.Z={props:{type:String,id:Number},data:function(){return{page:1,pages:null,next:null,prev:null,total:null,comment:"",comments:[],urlRoot:r.default.config.urlRoot}},methods:{language:function(t,e){var n,r,a,i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=l(t))){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}(document.cookie.split("; "));try{for(i.s();!(n=i.n()).done;){var o=(r=n.value.split("="),a=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(r,a)||l(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=o[0],c=o[1];if("Scr1wCTFdLanguage"===s)return"en"===decodeURIComponent(c)?t:e}}catch(t){i.e(t)}finally{i.f()}return e},toLocalTime:function(t){return(0,i.default)(t).format("MMMM Do, HH:mm:ss ")},nextPage:function(){this.page++,this.loadComments()},prevPage:function(){this.page--,this.loadComments()},getArgs:function(){var t={};return t["".concat(this.$props.type,"_id")]=this.$props.id,t},loadComments:function(){var t=this,e=this.getArgs();e.page=this.page,e.per_page=10,a.default.comments.get_comments(e).then((function(e){return t.page=e.meta.pagination.page,t.pages=e.meta.pagination.pages,t.next=e.meta.pagination.next,t.prev=e.meta.pagination.prev,t.total=e.meta.pagination.total,t.comments=e.data,t.comments}))},submitComment:function(){var t=this,e=this.comment.trim();e.length>0&&a.default.comments.add_comment(e,this.$props.type,this.getArgs(),(function(){t.loadComments()})),this.comment=""},deleteComment:function(t){var e=this;confirm(this.language("Are you sure you'd like to delete this comment?","您确定要删除此评论吗？"))&&a.default.comments.delete_comment(t).then((function(n){if(!0===n.success)for(var r=e.comments.length-1;r>=0;--r)e.comments[r].id==t&&e.comments.splice(r,1)}))}},created:function(){this.loadComments()},updated:function(){this.$el.querySelectorAll("pre code").forEach((function(t){o.default.highlightBlock(t)}))}}},78081:(t,e,n)=>{"use strict";Object.defineProperty(e,"X",{value:!0}),e.Z=void 0;var r,a=(r=n(66694))&&r.__esModule?r:{default:r},i=n(96403);function o(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.Z={props:{index:Number,initialField:Object},data:function(){return{field:this.initialField}},methods:{language:function(t,e){var n,r,a,i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=o(t))){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,i=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}(document.cookie.split("; "));try{for(i.s();!(n=i.n()).done;){var s=(r=n.value.split("="),a=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(r,a)||o(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=s[0],c=s[1];if("Scr1wCTFdLanguage"===l)return"en"===decodeURIComponent(c)?t:e}}catch(t){i.e(t)}finally{i.f()}return e},persistedField:function(){return this.field.id>=1},saveField:function(){var t=this,e=this.field;this.persistedField()?a.default.fetch("/api/v1/configs/fields/".concat(this.field.id),{method:"PATCH",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then((function(t){return t.json()})).then((function(e){!0===e.success&&(t.field=e.data,(0,i.ezToast)({title:t.language("Success","成功"),body:t.language("Field has been updated!","字段更新完成！"),delay:1e3}))})):a.default.fetch("/api/v1/configs/fields",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then((function(t){return t.json()})).then((function(e){!0===e.success&&(t.field=e.data,(0,i.ezToast)({title:t.language("Success","成功"),body:t.language("Field has been created!","字段创建成功！"),delay:1e3}))}))},deleteField:function(){var t=this;confirm(this.language("Are you sure you'd like to delete this field?","你确定你要删除这个字段吗？"))&&(this.persistedField()?a.default.fetch("/api/v1/configs/fields/".concat(this.field.id),{method:"DELETE",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then((function(t){return t.json()})).then((function(e){!0===e.success&&t.$emit("remove-field",t.index)})):this.$emit("remove-field",this.index))}}}},53328:(t,e,n)=>{"use strict";Object.defineProperty(e,"X",{value:!0}),e.Z=void 0;var r=i(n(66694)),a=i(n(78987));function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.Z={name:"FieldList",components:{Field:a.default},props:{type:String},data:function(){return{fields:[]}},methods:{language:function(t,e){var n,r,a,i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=o(t))){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,i=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}(document.cookie.split("; "));try{for(i.s();!(n=i.n()).done;){var s=(r=n.value.split("="),a=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(r,a)||o(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=s[0],c=s[1];if("Scr1wCTFdLanguage"===l)return"en"===decodeURIComponent(c)?t:e}}catch(t){i.e(t)}finally{i.f()}return e},loadFields:function(){var t=this;r.default.fetch("/api/v1/configs/fields?type=".concat(this.type),{method:"GET",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then((function(t){return t.json()})).then((function(e){t.fields=e.data}))},addField:function(){this.fields.push({id:Math.random(),type:this.type,field_type:"text",name:"",description:"",editable:!1,required:!1,public:!1})},removeField:function(t){this.fields.splice(t,1),console.log(this.fields)}},created:function(){this.loadFields()}}},52204:(t,e,n)=>{"use strict";Object.defineProperty(e,"X",{value:!0}),e.Z=void 0;var r=n(96403),a=o(n(55046)),i=o(n(66694));function o(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.Z={props:{challenge_id:Number},data:function(){return{files:[],urlRoot:i.default.config.urlRoot}},methods:{language:function(t,e){var n,r,a,i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=s(t))){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){l=!0,i=t},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}(document.cookie.split("; "));try{for(i.s();!(n=i.n()).done;){var o=(r=n.value.split("="),a=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(r,a)||s(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=o[0],c=o[1];if("Scr1wCTFdLanguage"===l)return"en"===decodeURIComponent(c)?t:e}}catch(t){i.e(t)}finally{i.f()}return e},loadFiles:function(){var t=this;i.default.fetch("/api/v1/challenges/".concat(this.$props.challenge_id,"/files"),{method:"GET"}).then((function(t){return t.json()})).then((function(e){e.success&&(t.files=e.data)}))},addFiles:function(){var t=this,e={challenge:this.$props.challenge_id,type:"challenge"},n=this.$refs.FileUploadForm;a.default.files.upload(n,e,(function(e){setTimeout((function(){t.loadFiles()}),700)}))},deleteFile:function(t){var e=this;(0,r.ezQuery)({title:this.language("Delete Files","删除文件"),body:this.language("Are you sure you want to delete this file?","您确定要删除该文件吗？"),success:function(){i.default.fetch("/api/v1/files/".concat(t),{method:"DELETE"}).then((function(t){return t.json()})).then((function(t){t.success&&e.loadFiles()}))}})}},created:function(){this.loadFiles()}}},55546:(t,e,n)=>{"use strict";Object.defineProperty(e,"X",{value:!0}),e.Z=void 0;var r=i(n(66694)),a=(n(96403),i(n(55046)));function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.Z={props:{editor:Object},data:function(){return{files:[],selectedFile:null}},methods:{language:function(t,e){var n,r,a,i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=o(t))){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,i=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}(document.cookie.split("; "));try{for(i.s();!(n=i.n()).done;){var s=(r=n.value.split("="),a=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(r,a)||o(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=s[0],c=s[1];if("Scr1wCTFdLanguage"===l)return"en"===decodeURIComponent(c)?t:e}}catch(t){i.e(t)}finally{i.f()}return e},getPageFiles:function(){var t=this;r.default.fetch("/api/v1/files?type=page",{credentials:"same-origin"}).then((function(t){return t.json()})).then((function(e){return t.files=e.data,t.files}))},uploadChosenFiles:function(){var t=this,e=document.querySelector("#media-library-upload");a.default.files.upload(e,{},(function(e){t.getPageFiles()}))},selectFile:function(t){return this.selectedFile=t,this.selectedFile},buildSelectedFileUrl:function(){return r.default.config.urlRoot+"/files/"+this.selectedFile.location},deleteSelectedFile:function(){var t=this,e=this.selectedFile.id;confirm(this.language("Are you sure you want to delete this file?","您确定要删除该文件吗？"))&&r.default.fetch("/api/v1/files/"+e,{method:"DELETE"}).then((function(e){200===e.status&&e.json().then((function(e){e.success&&(t.getPageFiles(),t.selectedFile=null)}))}))},insertSelectedFile:function(){var t=this.$props.editor;t.hasOwnProperty("codemirror")&&(t=t.codemirror);var e=t.getDoc(),n=e.getCursor(),r=this.buildSelectedFileUrl(),a="far fa-file-image"===this.getIconClass(this.selectedFile.location),i=r.split("/").pop(),o="[{0}]({1})".format(i,r);a&&(o="!"+o),e.replaceRange(o,n)},downloadSelectedFile:function(){var t=this.buildSelectedFileUrl();window.open(t,"_blank")},getIconClass:function(t){return{png:"far fa-file-image",jpg:"far fa-file-image",jpeg:"far fa-file-image",gif:"far fa-file-image",bmp:"far fa-file-image",svg:"far fa-file-image",txt:"far fa-file-alt",mov:"far fa-file-video",mp4:"far fa-file-video",wmv:"far fa-file-video",flv:"far fa-file-video",mkv:"far fa-file-video",avi:"far fa-file-video",pdf:"far fa-file-pdf",mp3:"far fa-file-sound",wav:"far fa-file-sound",aac:"far fa-file-sound",zip:"far fa-file-archive",gz:"far fa-file-archive",tar:"far fa-file-archive","7z":"far fa-file-archive",rar:"far fa-file-archive",py:"far fa-file-code",c:"far fa-file-code",cpp:"far fa-file-code",html:"far fa-file-code",js:"far fa-file-code",rb:"far fa-file-code",go:"far fa-file-code"}[t.split(".").pop()]||"far fa-file"}},created:function(){return this.getPageFiles()}}},42774:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"X",{value:!0}),exports.Z=void 0;var _jquery=_interopRequireDefault(__webpack_require__(79674)),_CTFd=_interopRequireDefault(__webpack_require__(66694)),_nunjucks=_interopRequireDefault(__webpack_require__(82786));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _createForOfIteratorHelper(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var _default=exports.Z={name:"FlagCreationForm",props:{challenge_id:Number},data:function(){return{types:{},selectedType:null,createForm:""}},methods:{language:function(t,e){var n,r=_createForOfIteratorHelper(document.cookie.split("; "));try{for(r.s();!(n=r.n()).done;){var a=_slicedToArray(n.value.split("="),2),i=a[0],o=a[1];if("Scr1wCTFdLanguage"===i)return"en"===decodeURIComponent(o)?t:e}}catch(t){r.e(t)}finally{r.f()}return e},selectType:function selectType(event){var _this=this,flagType=event.target.value;if(void 0===this.types[flagType])return this.selectedType=null,void(this.createForm="");var createFormURL=this.types[flagType].templates.create;_jquery.default.get(_CTFd.default.config.urlRoot+createFormURL,(function(template_data){var template=_nunjucks.default.compile(template_data);_this.selectedType=flagType,_this.createForm=template.render(),_this.createForm.includes("<script")&&setTimeout((function(){(0,_jquery.default)("<div>"+_this.createForm+"</div>").find("script").each((function(){eval((0,_jquery.default)(this).html())}))}),100)}))},loadTypes:function(){var t=this;_CTFd.default.fetch("/api/v1/flags/types",{method:"GET"}).then((function(t){return t.json()})).then((function(e){t.types=e.data}))},submitFlag:function(t){var e=this,n=(0,_jquery.default)(t.target).serializeJSON(!0);n.challenge=this.$props.challenge_id,_CTFd.default.fetch("/api/v1/flags",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then((function(t){return t.json()})).then((function(t){e.$emit("refreshFlags",e.$options.name)}))}},created:function(){this.loadTypes()}}},22584:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"X",{value:!0}),exports.Z=void 0;var _jquery=_interopRequireDefault(__webpack_require__(79674)),_CTFd=_interopRequireDefault(__webpack_require__(66694)),_nunjucks=_interopRequireDefault(__webpack_require__(82786));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _createForOfIteratorHelper(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var _default=exports.Z={name:"FlagEditForm",props:{flag_id:Number},data:function(){return{flag:{},editForm:""}},watch:{flag_id:{immediate:!0,handler:function(t,e){null!==t&&this.loadFlag()}}},methods:{language:function(t,e){var n,r=_createForOfIteratorHelper(document.cookie.split("; "));try{for(r.s();!(n=r.n()).done;){var a=_slicedToArray(n.value.split("="),2),i=a[0],o=a[1];if("Scr1wCTFdLanguage"===i)return"en"===decodeURIComponent(o)?t:e}}catch(t){r.e(t)}finally{r.f()}return e},loadFlag:function loadFlag(){var _this=this;_CTFd.default.fetch("/api/v1/flags/".concat(this.$props.flag_id),{method:"GET"}).then((function(t){return t.json()})).then((function(response){_this.flag=response.data;var editFormURL=_this.flag.templates.update;_jquery.default.get(_CTFd.default.config.urlRoot+editFormURL,(function(template_data){var template=_nunjucks.default.compile(template_data);_this.editForm=template.render(_this.flag),_this.editForm.includes("<script")&&setTimeout((function(){(0,_jquery.default)("<div>"+_this.editForm+"</div>").find("script").each((function(){eval((0,_jquery.default)(this).html())}))}),100)}))}))},updateFlag:function(t){var e=this,n=(0,_jquery.default)(t.target).serializeJSON(!0);_CTFd.default.fetch("/api/v1/flags/".concat(this.$props.flag_id),{method:"PATCH",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then((function(t){return t.json()})).then((function(t){e.$emit("refreshFlags",e.$options.name)}))}},mounted:function(){this.flag_id&&this.loadFlag()},created:function(){this.flag_id&&this.loadFlag()}}},6284:(t,e,n)=>{"use strict";Object.defineProperty(e,"X",{value:!0}),e.Z=void 0;var r=s(n(79674)),a=s(n(66694)),i=s(n(84790)),o=s(n(26314));function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.Z={components:{FlagCreationForm:i.default,FlagEditForm:o.default},props:{challenge_id:Number},data:function(){return{flags:[],editing_flag_id:null}},methods:{language:function(t,e){var n,r,a,i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=l(t))){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}(document.cookie.split("; "));try{for(i.s();!(n=i.n()).done;){var o=(r=n.value.split("="),a=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(r,a)||l(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=o[0],c=o[1];if("Scr1wCTFdLanguage"===s)return"en"===decodeURIComponent(c)?t:e}}catch(t){i.e(t)}finally{i.f()}return e},loadFlags:function(){var t=this;a.default.fetch("/api/v1/challenges/".concat(this.$props.challenge_id,"/flags"),{method:"GET",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then((function(t){return t.json()})).then((function(e){e.success&&(t.flags=e.data)}))},refreshFlags:function(t){var e;switch(this.loadFlags(),t){case"FlagEditForm":e=this.$refs.FlagEditForm.$el,(0,r.default)(e).modal("hide");break;case"FlagCreationForm":e=this.$refs.FlagCreationForm.$el,(0,r.default)(e).modal("hide")}},addFlag:function(){var t=this.$refs.FlagCreationForm.$el;(0,r.default)(t).modal()},editFlag:function(t){this.editing_flag_id=t;var e=this.$refs.FlagEditForm.$el;(0,r.default)(e).modal()},deleteFlag:function(t){var e=this;confirm(this.language("Are you sure you'd like to delete this flag?","您确定要删除此Flag吗？"))&&a.default.fetch("/api/v1/flags/".concat(t),{method:"DELETE"}).then((function(t){return t.json()})).then((function(t){t.success&&e.loadFlags()}))}},created:function(){this.loadFlags()}}},41270:(t,e)=>{"use strict";function n(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}Object.defineProperty(e,"X",{value:!0}),e.Z=void 0,e.Z={name:"HintCreationForm",props:{challenge_id:Number,hints:Array},data:function(){return{cost:0,selectedHints:[]}},methods:{language:function(t,e){var r,a,i,o=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=n(t))){r&&(t=r);var a=0,i=function(){};return{s:i,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){l=!0,o=t},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw o}}}}(document.cookie.split("; "));try{for(o.s();!(r=o.n()).done;){var s=(a=r.value.split("="),i=2,function(t){if(Array.isArray(t))return t}(a)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(a,i)||n(a,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=s[0],c=s[1];if("Scr1wCTFdLanguage"===l)return"en"===decodeURIComponent(c)?t:e}}catch(t){o.e(t)}finally{o.f()}return e},getCost:function(){return this.cost||0},getContent:function(){return this.$refs.content.value},submitHint:function(){var t=this,e={challenge_id:this.$props.challenge_id,content:this.getContent(),cost:this.getCost(),requirements:{prerequisites:this.selectedHints}};CTFd.fetch("/api/v1/hints",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then((function(t){return t.json()})).then((function(e){e.success&&t.$emit("refreshHints",t.$options.name)}))}}}},12240:(t,e,n)=>{"use strict";Object.defineProperty(e,"X",{value:!0}),e.Z=void 0;var r,a=(r=n(66694))&&r.__esModule?r:{default:r},i=n(64524);function o(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.Z={name:"HintEditForm",props:{challenge_id:Number,hint_id:Number,hints:Array},data:function(){return{cost:0,content:null,selectedHints:[]}},computed:{otherHints:function(){var t=this;return this.hints.filter((function(e){return e.id!==t.$props.hint_id}))}},watch:{hint_id:{immediate:!0,handler:function(t,e){null!==t&&this.loadHint()}}},methods:{language:function(t,e){var n,r,a,i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=o(t))){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,i=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}(document.cookie.split("; "));try{for(i.s();!(n=i.n()).done;){var s=(r=n.value.split("="),a=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(r,a)||o(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=s[0],c=s[1];if("Scr1wCTFdLanguage"===l)return"en"===decodeURIComponent(c)?t:e}}catch(t){i.e(t)}finally{i.f()}return e},loadHint:function(){var t=this;a.default.fetch("/api/v1/hints/".concat(this.$props.hint_id,"?preview=true"),{method:"GET",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then((function(t){return t.json()})).then((function(e){if(e.success){var n,r=e.data;t.cost=r.cost,t.content=r.content,t.selectedHints=(null===(n=r.requirements)||void 0===n?void 0:n.prerequisites)||[],t.$nextTick((function(){setTimeout((function(){var e=t.$refs.content;(0,i.bindMarkdownEditor)(e),e.mde.codemirror.getDoc().setValue(e.value),e.mde.codemirror.refresh()}),100)}))}}))},getCost:function(){return this.cost||0},getContent:function(){return this.$refs.content.value},updateHint:function(){var t=this,e={challenge_id:this.$props.challenge_id,content:this.getContent(),cost:this.getCost(),requirements:{prerequisites:this.selectedHints}};a.default.fetch("/api/v1/hints/".concat(this.$props.hint_id),{method:"PATCH",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then((function(t){return t.json()})).then((function(e){e.success&&t.$emit("refreshHints",t.$options.name)}))}},mounted:function(){this.hint_id&&this.loadHint()},created:function(){this.hint_id&&this.loadHint()}}},9307:(t,e,n)=>{"use strict";Object.defineProperty(e,"X",{value:!0}),e.Z=void 0;var r=n(96403),a=s(n(66694)),i=s(n(99650)),o=s(n(73225));function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.Z={components:{HintCreationForm:i.default,HintEditForm:o.default},props:{challenge_id:Number},data:function(){return{hints:[],editing_hint_id:null}},methods:{language:function(t,e){var n,r,a,i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=l(t))){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}(document.cookie.split("; "));try{for(i.s();!(n=i.n()).done;){var o=(r=n.value.split("="),a=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(r,a)||l(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=o[0],c=o[1];if("Scr1wCTFdLanguage"===s)return"en"===decodeURIComponent(c)?t:e}}catch(t){i.e(t)}finally{i.f()}return e},loadHints:function(){var t=this;a.default.fetch("/api/v1/challenges/".concat(this.$props.challenge_id,"/hints"),{method:"GET",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then((function(t){return t.json()})).then((function(e){e.success&&(t.hints=e.data)}))},addHint:function(){var t=this.$refs.HintCreationForm.$el;$(t).modal()},editHint:function(t){this.editing_hint_id=t;var e=this.$refs.HintEditForm.$el;$(e).modal()},refreshHints:function(t){var e;switch(this.loadHints(),t){case"HintCreationForm":e=this.$refs.HintCreationForm.$el,console.log(e),$(e).modal("hide");break;case"HintEditForm":e=this.$refs.HintEditForm.$el,$(e).modal("hide")}},deleteHint:function(t){var e=this;(0,r.ezQuery)({title:this.language("Delete Hint","删除提示"),body:this.language("Are you sure you want to delete this hint?","您确定要删除此提示吗？"),success:function(){a.default.fetch("/api/v1/hints/".concat(t),{method:"DELETE"}).then((function(t){return t.json()})).then((function(t){t.success&&e.loadHints()}))}})}},created:function(){this.loadHints()}}},53259:(t,e,n)=>{"use strict";Object.defineProperty(e,"X",{value:!0}),e.Z=void 0;var r,a=(r=n(66694))&&r.__esModule?r:{default:r};function i(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.Z={props:{challenge_id:Number},data:function(){return{challenge:null,challenges:[],selected_id:null}},computed:{updateAvailable:function(){return!!this.challenge&&this.selected_id!=this.challenge.next_id},otherChallenges:function(){var t=this;return this.challenges.filter((function(e){return e.id!==t.$props.challenge_id}))}},methods:{language:function(t,e){var n,r,a,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}(document.cookie.split("; "));try{for(o.s();!(n=o.n()).done;){var s=(r=n.value.split("="),a=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(r,a)||i(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=s[0],c=s[1];if("Scr1wCTFdLanguage"===l)return"en"===decodeURIComponent(c)?t:e}}catch(t){o.e(t)}finally{o.f()}return e},loadData:function(){var t=this;a.default.fetch("/api/v1/challenges/".concat(this.$props.challenge_id),{method:"GET",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then((function(t){return t.json()})).then((function(e){e.success&&(t.challenge=e.data,t.selected_id=e.data.next_id)}))},loadChallenges:function(){var t=this;a.default.fetch("/api/v1/challenges?view=admin",{method:"GET",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then((function(t){return t.json()})).then((function(e){e.success&&(t.challenges=e.data)}))},updateNext:function(){var t=this;a.default.fetch("/api/v1/challenges/".concat(this.$props.challenge_id),{method:"PATCH",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({next_id:"null"!=this.selected_id?this.selected_id:null})}).then((function(t){return t.json()})).then((function(e){e.success&&(t.loadData(),t.loadChallenges())}))}},created:function(){this.loadData(),this.loadChallenges()}}},98532:(t,e,n)=>{"use strict";Object.defineProperty(e,"X",{value:!0}),e.Z=void 0;var r=o(n(66694)),a=o(n(71350)),i=o(n(48580));function o(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.Z={props:{id:Number,title:String,content:String,html:String,date:String},methods:{language:function(t,e){var n,r,a,i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=s(t))){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){l=!0,i=t},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}(document.cookie.split("; "));try{for(i.s();!(n=i.n()).done;){var o=(r=n.value.split("="),a=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(r,a)||s(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=o[0],c=o[1];if("Scr1wCTFdLanguage"===l)return"en"===decodeURIComponent(c)?t:e}}catch(t){i.e(t)}finally{i.f()}return e},localDate:function(){return(0,a.default)(this.date).format("MMMM Do, HH:mm:ss ")},deleteNotification:function(){var t=this;confirm(this.language("Are you sure you want to delete this notification?","您确定要删除此通知吗？"))&&r.default.api.delete_notification({notificationId:this.id}).then((function(e){e.success&&(t.$destroy(),t.$el.parentNode.removeChild(t.$el))}))}},mounted:function(){this.$el.querySelectorAll("pre code").forEach((function(t){i.default.highlightBlock(t)}))}}},75328:(t,e,n)=>{"use strict";Object.defineProperty(e,"X",{value:!0}),e.Z=void 0;var r,a=(r=n(66694))&&r.__esModule?r:{default:r};function i(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.Z={props:{challenge_id:Number},data:function(){return{challenges:[],requirements:{},selectedRequirements:[],selectedAnonymize:!1}},computed:{newRequirements:function(){var t=this.requirements.prerequisites||[],e=this.requirements.anonymize||!1,n=JSON.stringify(t.sort())!==JSON.stringify(this.selectedRequirements.sort()),r=e!==this.selectedAnonymize;return n||r},requiredChallenges:function(){var t=this,e=this.requirements.prerequisites||[];return this.challenges.filter((function(n){return n.id!==t.$props.challenge_id&&e.includes(n.id)}))},otherChallenges:function(){var t=this,e=this.requirements.prerequisites||[];return this.challenges.filter((function(n){return n.id!==t.$props.challenge_id&&!e.includes(n.id)}))}},methods:{language:function(t,e){var n,r,a,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}(document.cookie.split("; "));try{for(o.s();!(n=o.n()).done;){var s=(r=n.value.split("="),a=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(r,a)||i(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=s[0],c=s[1];if("Scr1wCTFdLanguage"===l)return"en"===decodeURIComponent(c)?t:e}}catch(t){o.e(t)}finally{o.f()}return e},loadChallenges:function(){var t=this;a.default.fetch("/api/v1/challenges?view=admin",{method:"GET",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then((function(t){return t.json()})).then((function(e){e.success&&(t.challenges=e.data)}))},getChallengeNameById:function(t){var e=this.challenges.find((function(e){return e.id===t}));return e?e.name:""},loadRequirements:function(){var t=this;a.default.fetch("/api/v1/challenges/".concat(this.$props.challenge_id,"/requirements"),{method:"GET",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then((function(t){return t.json()})).then((function(e){e.success&&(t.requirements=e.data||{},t.selectedRequirements=t.requirements.prerequisites||[],t.selectedAnonymize=t.requirements.anonymize||!1)}))},updateRequirements:function(){var t=this,e={requirements:{prerequisites:this.selectedRequirements}};this.selectedAnonymize&&(e.requirements.anonymize=!0),a.default.fetch("/api/v1/challenges/".concat(this.$props.challenge_id),{method:"PATCH",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then((function(t){return t.json()})).then((function(e){e.success&&t.loadRequirements()}))}},created:function(){this.loadChallenges(),this.loadRequirements()}}},93213:(t,e,n)=>{"use strict";Object.defineProperty(e,"X",{value:!0}),e.Z=void 0,a(n(79674));var r=a(n(66694));function a(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.Z={props:{challenge_id:Number},data:function(){return{tags:[],tagValue:""}},methods:{language:function(t,e){var n,r,a,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}(document.cookie.split("; "));try{for(o.s();!(n=o.n()).done;){var s=(r=n.value.split("="),a=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(r,a)||i(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=s[0],c=s[1];if("Scr1wCTFdLanguage"===l)return"en"===decodeURIComponent(c)?t:e}}catch(t){o.e(t)}finally{o.f()}return e},loadTags:function(){var t=this;r.default.fetch("/api/v1/challenges/".concat(this.$props.challenge_id,"/tags"),{method:"GET",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then((function(t){return t.json()})).then((function(e){e.success&&(t.tags=e.data)}))},addTag:function(){var t=this,e={value:this.tagValue,challenge:this.$props.challenge_id};r.default.api.post_tag_list({},e).then((function(e){e.success&&(t.tagValue="",t.loadTags())}))},deleteTag:function(t){var e=this;r.default.api.delete_tag({tagId:t}).then((function(t){t.success&&e.loadTags()}))}},created:function(){this.loadTags()}}},50191:(t,e,n)=>{"use strict";Object.defineProperty(e,"X",{value:!0}),e.Z=void 0;var r,a=(r=n(66694))&&r.__esModule?r:{default:r},i=n(96403),o=n(56930);function s(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.Z={name:"UserAddForm",props:{team_id:Number},data:function(){return{searchedName:"",awaitingSearch:!1,emptyResults:!1,userResults:[],selectedResultIdx:0,selectedUsers:[]}},methods:{language:function(t,e){var n,r,a,i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=s(t))){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){l=!0,i=t},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}(document.cookie.split("; "));try{for(i.s();!(n=i.n()).done;){var o=(r=n.value.split("="),a=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(r,a)||s(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=o[0],c=o[1];if("Scr1wCTFdLanguage"===l)return"en"===decodeURIComponent(c)?t:e}}catch(t){i.e(t)}finally{i.f()}return e},searchUsers:function(){var t=this;this.selectedResultIdx=0,""!=this.searchedName?a.default.fetch("/api/v1/users?view=admin&field=name&q=".concat(this.searchedName),{method:"GET",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then((function(t){return t.json()})).then((function(e){e.success&&(t.userResults=e.data.slice(0,10))})):this.userResults=[]},moveCursor:function(t){switch(t){case"up":this.selectedResultIdx&&(this.selectedResultIdx-=1);break;case"down":this.selectedResultIdx<this.userResults.length-1&&(this.selectedResultIdx+=1)}},selectUser:function(t){void 0===t&&(t=this.selectedResultIdx);var e=this.userResults[t];!1===this.selectedUsers.some((function(t){return t.id===e.id}))&&this.selectedUsers.push(e),this.userResults=[],this.searchedName=""},removeSelectedUser:function(t){this.selectedUsers=this.selectedUsers.filter((function(e){return e.id!==t}))},handleAddUsersRequest:function(){var t=this,e=[];return this.selectedUsers.forEach((function(n){var r={user_id:n.id};e.push(a.default.fetch("/api/v1/teams/".concat(t.$props.team_id,"/members"),{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(r)}))})),Promise.all(e)},handleRemoveUsersFromTeams:function(){var t=[];return this.selectedUsers.forEach((function(e){var n={user_id:e.id};t.push(a.default.fetch("/api/v1/teams/".concat(e.team_id,"/members"),{method:"DELETE",body:JSON.stringify(n)}))})),Promise.all(t)},addUsers:function(){var t=this,e=[];if(this.selectedUsers.forEach((function(t){t.team_id&&e.push(t.name)})),e.length){var n=(0,o.htmlEntities)(e.join(", "));(0,i.ezQuery)({title:"Confirm Team Removal",body:"The following users are currently in teams:<br><br> ".concat(n," <br><br>Are you sure you want to remove them from their current teams and add them to this one? <br><br>All of their challenge solves, attempts, awards, and unlocked hints will also be deleted!"),success:function(){t.handleRemoveUsersFromTeams().then((function(e){t.handleAddUsersRequest().then((function(t){window.location.reload()}))}))}})}else this.handleAddUsersRequest().then((function(t){window.location.reload()}))}},watch:{searchedName:function(t){var e=this;!1===this.awaitingSearch&&setTimeout((function(){e.searchUsers(),e.awaitingSearch=!1}),1e3),this.awaitingSearch=!0}}}},85515:(t,e,n)=>{"use strict";Object.defineProperty(e,"X",{value:!0}),e.Z=void 0;var r,a=(r=n(66694))&&r.__esModule?r:{default:r};function i(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.Z={props:{challenge_id:Number},data:function(){return{topics:[],topicValue:"",searchedTopic:"",topicResults:[],selectedResultIdx:0,awaitingSearch:!1}},methods:{language:function(t,e){var n,r,a,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}(document.cookie.split("; "));try{for(o.s();!(n=o.n()).done;){var s=(r=n.value.split("="),a=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(r,a)||i(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=s[0],c=s[1];if("Scr1wCTFdLanguage"===l)return"en"===decodeURIComponent(c)?t:e}}catch(t){o.e(t)}finally{o.f()}return e},loadTopics:function(){var t=this;a.default.fetch("/api/v1/challenges/".concat(this.$props.challenge_id,"/topics"),{method:"GET",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then((function(t){return t.json()})).then((function(e){e.success&&(t.topics=e.data)}))},searchTopics:function(){var t=this;this.selectedResultIdx=0,""!=this.topicValue?a.default.fetch("/api/v1/topics?field=value&q=".concat(this.topicValue),{method:"GET",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then((function(t){return t.json()})).then((function(e){e.success&&(t.topicResults=e.data.slice(0,10))})):this.topicResults=[]},addTopic:function(){var t,e=this;if(0===this.selectedResultIdx)t=this.topicValue;else{var n=this.selectedResultIdx-1;t=this.topicResults[n].value}var r={value:t,challenge:this.$props.challenge_id,type:"challenge"};a.default.fetch("/api/v1/topics",{method:"POST",body:JSON.stringify(r)}).then((function(t){return t.json()})).then((function(t){t.success&&(e.topicValue="",e.loadTopics())}))},deleteTopic:function(t){var e=this;a.default.fetch("/api/v1/topics?type=challenge&target_id=".concat(t),{method:"DELETE"}).then((function(t){return t.json()})).then((function(t){t.success&&e.loadTopics()}))},moveCursor:function(t){switch(t){case"up":this.selectedResultIdx&&(this.selectedResultIdx-=1);break;case"down":this.selectedResultIdx<this.topicResults.length&&(this.selectedResultIdx+=1)}},selectTopic:function(t){void 0===t&&(t=this.selectedResultIdx);var e=this.topicResults[t];this.topicValue=e.value}},watch:{topicValue:function(t){var e=this;!1===this.awaitingSearch&&setTimeout((function(){e.searchTopics(),e.awaitingSearch=!1}),500),this.awaitingSearch=!0}},created:function(){this.loadTopics()}}},4689:(t,e)=>{"use strict";e.xk=e.sY=void 0;var n=e.sY=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"row mb-3"},[e("div",{staticClass:"col-md-12"},[e("div",{staticClass:"comment"},[e("textarea",{directives:[{name:"model",rawName:"v-model.lazy",value:t.comment,expression:"comment",modifiers:{lazy:!0}}],staticClass:"form-control mb-2",attrs:{rows:"2",id:"comment-input",placeholder:t.language("Add comment","添加评论")},domProps:{value:t.comment},on:{change:function(e){t.comment=e.target.value}}}),t._v(" "),e("button",{staticClass:"btn btn-sm btn-success btn-outlined float-right",attrs:{type:"submit"},on:{click:function(e){return t.submitComment()}}},[t._v("\n          "+t._s(t.language("Comment","评论"))+"\n        ")])])])]),t._v(" "),t.pages>1?e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-12"},[e("div",{staticClass:"text-center"},[e("button",{staticClass:"btn btn-link p-0",attrs:{type:"button",disabled:!t.prev},on:{click:function(e){return t.prevPage()}}},[t._v("\n          <<<\n        ")]),t._v(" "),e("button",{staticClass:"btn btn-link p-0",attrs:{type:"button",disabled:!t.next},on:{click:function(e){return t.nextPage()}}},[t._v("\n          >>>\n        ")])])]),t._v(" "),e("div",{staticClass:"col-md-12"},[e("div",{staticClass:"text-center"},[e("small",{staticClass:"text-muted"},[t._v("\n          "+t._s(t.language("Page ","第"))+t._s(t.page)+t._s(t.language(" of ","页 （共"))+" "+t._s(t.total)+" "+t._s(t.language(" comments","条评论）"))+"\n        ")])])])]):t._e(),t._v(" "),e("div",{staticClass:"comments"},[e("transition-group",{attrs:{name:"comment-card"}},t._l(t.comments,(function(n){return e("div",{key:n.id,staticClass:"comment-card card mb-2"},[e("div",{staticClass:"card-body pl-0 pb-0 pt-2 pr-2"},[e("button",{staticClass:"close float-right",attrs:{type:"button","aria-label":"Close"},on:{click:function(e){return t.deleteComment(n.id)}}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])]),t._v(" "),e("div",{staticClass:"card-body"},[e("div",{staticClass:"card-text",domProps:{innerHTML:t._s(n.html)}}),t._v(" "),e("small",{staticClass:"text-muted float-left"},[e("span",[e("a",{attrs:{href:"".concat(t.urlRoot,"/admin/users/").concat(n.author_id)}},[t._v(t._s(n.author.name))])])]),t._v(" "),e("small",{staticClass:"text-muted float-right"},[e("span",{staticClass:"float-right"},[t._v(t._s(t.toLocalTime(n.date)))])])])])})),0)],1),t._v(" "),t.pages>1?e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-12"},[e("div",{staticClass:"text-center"},[e("button",{staticClass:"btn btn-link p-0",attrs:{type:"button",disabled:!t.prev},on:{click:function(e){return t.prevPage()}}},[t._v("\n          <<<\n        ")]),t._v(" "),e("button",{staticClass:"btn btn-link p-0",attrs:{type:"button",disabled:!t.next},on:{click:function(e){return t.nextPage()}}},[t._v("\n          >>>\n        ")])])]),t._v(" "),e("div",{staticClass:"col-md-12"},[e("div",{staticClass:"text-center"},[e("small",{staticClass:"text-muted"},[t._v("\n          "+t._s(t.language("Page ","第"))+t._s(t.page)+t._s(t.language(" of ","页 （共"))+" "+t._s(t.total)+" "+t._s(t.language(" comments","条评论）"))+"\n        ")])])])]):t._e()])};e.xk=[],n._withStripped=!0},59021:(t,e)=>{"use strict";e.xk=e.sY=void 0;var n=e.sY=function(){var t=this,e=t._self._c;return e("div",{staticClass:"border-bottom"},[e("div",[e("button",{staticClass:"close float-right",attrs:{type:"button","aria-label":"Close"},on:{click:function(e){return t.deleteField()}}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-3"},[e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.language("Field Type","字段类型")))]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model.lazy",value:t.field.field_type,expression:"field.field_type",modifiers:{lazy:!0}}],staticClass:"form-control custom-select",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.field,"field_type",e.target.multiple?n:n[0])}}},[e("option",{attrs:{value:"text"}},[t._v(t._s(t.language("Text Field","文本域")))]),t._v(" "),e("option",{attrs:{value:"boolean"}},[t._v(t._s(t.language("Checkbox","复选框")))])]),t._v(" "),e("small",{staticClass:"form-text text-muted"},[t._v(t._s(t.language("Type of field shown to the user","显示给用户的字段类型")))])])]),t._v(" "),e("div",{staticClass:"col-md-9"},[e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.language("Field Name","字段名称")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.field.name,expression:"field.name",modifiers:{lazy:!0}}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.field.name},on:{change:function(e){return t.$set(t.field,"name",e.target.value)}}}),t._v(" "),e("small",{staticClass:"form-text text-muted"},[t._v(t._s(t.language("Field name","字段名称")))])])]),t._v(" "),e("div",{staticClass:"col-md-12"},[e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.language("Field Description","字段说明")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.field.description,expression:"field.description",modifiers:{lazy:!0}}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.field.description},on:{change:function(e){return t.$set(t.field,"description",e.target.value)}}}),t._v(" "),e("small",{staticClass:"form-text text-muted",attrs:{id:"emailHelp"}},[t._v("\n          "+t._s(t.language("Field Description","字段说明")))])])]),t._v(" "),e("div",{staticClass:"col-md-12"},[e("div",{staticClass:"form-check"},[e("label",{staticClass:"form-check-label"},[e("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.field.editable,expression:"field.editable",modifiers:{lazy:!0}}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.field.editable)?t._i(t.field.editable,null)>-1:t.field.editable},on:{change:function(e){var n=t.field.editable,r=e.target,a=!!r.checked;if(Array.isArray(n)){var i=t._i(n,null);r.checked?i<0&&t.$set(t.field,"editable",n.concat([null])):i>-1&&t.$set(t.field,"editable",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.field,"editable",a)}}}),t._v("\n          "+t._s(t.language("Editable by user in profile","用户可在个人资料中编辑"))+"\n        ")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("label",{staticClass:"form-check-label"},[e("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.field.required,expression:"field.required",modifiers:{lazy:!0}}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.field.required)?t._i(t.field.required,null)>-1:t.field.required},on:{change:function(e){var n=t.field.required,r=e.target,a=!!r.checked;if(Array.isArray(n)){var i=t._i(n,null);r.checked?i<0&&t.$set(t.field,"required",n.concat([null])):i>-1&&t.$set(t.field,"required",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.field,"required",a)}}}),t._v("\n          "+t._s(t.language("Required on registration","注册时需要填写"))+"\n        ")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("label",{staticClass:"form-check-label"},[e("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.field.public,expression:"field.public",modifiers:{lazy:!0}}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.field.public)?t._i(t.field.public,null)>-1:t.field.public},on:{change:function(e){var n=t.field.public,r=e.target,a=!!r.checked;if(Array.isArray(n)){var i=t._i(n,null);r.checked?i<0&&t.$set(t.field,"public",n.concat([null])):i>-1&&t.$set(t.field,"public",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.field,"public",a)}}}),t._v("\n          "+t._s(t.language("Shown on public profile","显示在公开资料上"))+"\n        ")])])])]),t._v(" "),e("div",{staticClass:"row pb-3"},[e("div",{staticClass:"col-md-12"},[e("div",{staticClass:"d-block"},[e("button",{staticClass:"btn btn-sm btn-success btn-outlined float-right",attrs:{type:"button"},on:{click:function(e){return t.saveField()}}},[t._v("\n          "+t._s(t.language("Save","保存"))+"\n        ")])])])])])};e.xk=[],n._withStripped=!0},99266:(t,e)=>{"use strict";e.xk=e.sY=void 0;var n=e.sY=function(){var t=this,e=t._self._c;return e("div",[t._l(t.fields,(function(n,r){return e("div",{key:n.id,staticClass:"mb-5"},[e("Field",{attrs:{index:r,initialField:t.fields[r]},on:{"update:initialField":function(e){return t.$set(t.fields,r,e)},"update:initial-field":function(e){return t.$set(t.fields,r,e)},"remove-field":t.removeField}})],1)})),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col text-center"},[e("button",{staticClass:"btn btn-sm btn-success btn-outlined m-auto",attrs:{type:"button"},on:{click:function(e){return t.addField()}}},[t._v("\n        "+t._s(t.language("Add New Field","添加新字段"))+"\n      ")])])])],2)};e.xk=[],n._withStripped=!0},65636:(t,e)=>{"use strict";e.xk=e.sY=void 0;var n=e.sY=function(){var t=this,e=t._self._c;return e("div",[e("table",{staticClass:"table table-striped",attrs:{id:"filesboard"}},[e("thead",[e("tr",[e("td",{staticClass:"text-center"},[e("b",[t._v("\n          "+t._s(t.language("File","文件"))+"\n        ")])]),t._v(" "),e("td",{staticClass:"text-center"},[e("b",[t._v("\n          "+t._s(t.language("Settings","操作"))+"\n        ")])])])]),t._v(" "),e("tbody",t._l(t.files,(function(n){return e("tr",{key:n.id},[e("td",{staticClass:"text-center"},[e("a",{attrs:{href:"".concat(t.urlRoot,"/files/").concat(n.location)}},[t._v(t._s(n.location.split("/").pop()))])]),t._v(" "),e("td",{staticClass:"text-center"},[e("i",{staticClass:"btn-fa fas fa-times delete-file",attrs:{role:"button"},on:{click:function(e){return t.deleteFile(n.id)}}})])])})),0)]),t._v(" "),e("div",{staticClass:"col-md-12 mt-3"},[e("form",{ref:"FileUploadForm",attrs:{method:"POST"},on:{submit:function(e){return e.preventDefault(),t.addFiles.apply(null,arguments)}}},[e("div",{staticClass:"form-group"},[e("input",{staticClass:"form-control-file",attrs:{id:"file",multiple:"",name:"file",required:"",type:"file"}}),t._v(" "),e("sub",{staticClass:"text-muted"},[t._v("\n          "+t._s(t.language("Attach multiple files using Control+Click or Cmd+Click.","使用 Control+单击或 Cmd+单击附加多个文件。"))+"\n        ")])]),t._v(" "),e("div",{staticClass:"form-group"},[e("input",{staticClass:"btn btn-success float-right",attrs:{id:"_submit",name:"_submit",type:"submit"},domProps:{value:t.language("Upload","上传")}})])])])])};e.xk=[],n._withStripped=!0},66412:(t,e)=>{"use strict";e.xk=e.sY=void 0;var n=e.sY=function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal fade",attrs:{id:"media-modal",tabindex:"-1"}},[e("div",{staticClass:"modal-dialog modal-xl"},[e("div",{staticClass:"modal-content"},[e("div",{staticClass:"modal-header"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-12"},[e("h3",{staticClass:"text-center"},[t._v("\n                "+t._s(t.language("Media Library","媒体库"))+"\n              ")])])])]),t._v(" "),t._m(0)]),t._v(" "),e("div",{staticClass:"modal-body"},[e("div",{staticClass:"modal-header"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row mh-100"},[e("div",{staticClass:"col-md-6",attrs:{id:"media-library-list"}},t._l(t.files,(function(n){return e("div",{key:n.id,staticClass:"media-item-wrapper"},[e("a",{attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.selectFile(n),!1}}},[e("i",{class:t.getIconClass(n.location),attrs:{"aria-hidden":"true"}}),t._v(" "),e("small",{staticClass:"media-item-title"},[t._v(t._s(n.location.split("/").pop()))])])])})),0),t._v(" "),e("div",{staticClass:"col-md-6",attrs:{id:"media-library-details"}},[e("h4",{staticClass:"text-center"},[t._v("\n                  "+t._s(t.language("Media Details","媒体文件信息"))+"\n                ")]),t._v(" "),e("div",{attrs:{id:"media-item"}},[e("div",{staticClass:"text-center",attrs:{id:"media-icon"}},[this.selectedFile?e("div",["far fa-file-image"===t.getIconClass(this.selectedFile.location)?e("div",[e("img",{staticStyle:{"max-width":"100%","max-height":"100%","object-fit":"contain"},attrs:{src:t.buildSelectedFileUrl()}})]):e("div",[e("i",{class:"".concat(t.getIconClass(this.selectedFile.location)," fa-4x"),attrs:{"aria-hidden":"true"}})])]):t._e()]),t._v(" "),e("br"),t._v(" "),this.selectedFile?e("div",{staticClass:"text-center",attrs:{id:"media-filename"}},[e("a",{attrs:{href:t.buildSelectedFileUrl(),target:"_blank"}},[t._v("\n                      "+t._s(this.selectedFile.location.split("/").pop())+"\n                    ")])]):t._e(),t._v(" "),e("br"),t._v(" "),e("div",{staticClass:"form-group"},[this.selectedFile?e("div",[t._v("\n                      "+t._s(t.language("Link:","链接："))+"\n                      "),e("input",{staticClass:"form-control",attrs:{type:"text",id:"media-link",readonly:""},domProps:{value:t.buildSelectedFileUrl()}})]):e("div",[t._v("\n                      "+t._s(t.language("Link:","链接："))+"\n                      "),e("input",{staticClass:"form-control",attrs:{type:"text",id:"media-link",readonly:""}})])]),t._v(" "),e("div",{staticClass:"form-group text-center"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-6"},[e("button",{staticClass:"btn btn-success w-100",attrs:{id:"media-insert","data-toggle":"tooltip","data-placement":"top",title:t.language("Insert link into editor","将链接插入编辑器")},on:{click:t.insertSelectedFile}},[t._v("\n                          "+t._s(t.language("Insert","插入链接"))+"\n                        ")])]),t._v(" "),e("div",{staticClass:"col-md-3"},[e("button",{staticClass:"btn btn-primary w-100",attrs:{id:"media-download","data-toggle":"tooltip","data-placement":"top",title:t.language("Download file","下载文件")},on:{click:t.downloadSelectedFile}},[e("i",{staticClass:"fas fa-download"})])]),t._v(" "),e("div",{staticClass:"col-md-3"},[e("button",{staticClass:"btn btn-danger w-100",attrs:{id:"media-delete","data-toggle":"tooltip","data-placement":"top",title:t.language("Delete file","删除文件")},on:{click:t.deleteSelectedFile}},[e("i",{staticClass:"far fa-trash-alt"})])])])])])])])])]),t._v(" "),e("form",{attrs:{id:"media-library-upload",enctype:"multipart/form-data"}},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"media-files"}},[t._v("\n              "+t._s(t.language("Upload Files","上传文件"))+"\n            ")]),t._v(" "),e("input",{staticClass:"form-control-file",attrs:{type:"file",name:"file",id:"media-files",multiple:""}}),t._v(" "),e("sub",{staticClass:"help-block"},[t._v("\n              "+t._s(t.language("Attach multiple files using Control+Click or Cmd+Click.","使用 Control+单击或 Cmd+单击附加多个文件。"))+"\n            ")])]),t._v(" "),e("input",{attrs:{type:"hidden",value:"page",name:"type"}})])]),t._v(" "),e("div",{staticClass:"modal-footer"},[e("div",{staticClass:"float-right"},[e("button",{staticClass:"btn btn-primary media-upload-button",attrs:{type:"submit"},on:{click:t.uploadChosenFiles}},[t._v("\n            "+t._s(t.language("Upload","上传"))+"\n          ")])])])])])])};e.xk=[function(){var t=this._self._c;return t("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[t("span",{attrs:{"aria-hidden":"true"}},[this._v("×")])])}],n._withStripped=!0},6632:(t,e)=>{"use strict";e.xk=e.sY=void 0;var n=e.sY=function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal fade",attrs:{id:"flag-create-modal",tabindex:"-1"}},[e("div",{staticClass:"modal-dialog modal-lg"},[e("div",{staticClass:"modal-content"},[e("div",{staticClass:"modal-header text-center"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-12"},[e("h3",[t._v("\n                "+t._s(t.language("Create Flag","创建Flag"))+"\n              ")])])])]),t._v(" "),t._m(0)]),t._v(" "),e("div",{staticClass:"modal-body"},[e("div",{staticClass:"create-keys-select-div"},[e("label",{staticClass:"control-label",attrs:{for:"create-keys-select"}},[t._v("\n            "+t._s(t.language("Choose Flag Type","选择Flag类型"))+"\n          ")]),t._v(" "),e("select",{staticClass:"form-control custom-select",on:{change:function(e){return t.selectType(e)}}},[e("option",[t._v(" -- ")]),t._v(" "),t._l(Object.keys(t.types),(function(n){return e("option",{key:n,domProps:{value:n}},[t._v(t._s(n))])}))],2)]),t._v(" "),e("br"),t._v(" "),e("form",{on:{submit:function(e){return e.preventDefault(),t.submitFlag.apply(null,arguments)}}},[e("div",{attrs:{id:"create-flag-form"},domProps:{innerHTML:t._s(t.createForm)}}),t._v(" "),t.createForm?e("button",{staticClass:"btn btn-success float-right",attrs:{type:"submit"}},[t._v("\n            "+t._s(t.language("Create Flag","创建Flag"))+"\n          ")]):t._e()])])])])])};e.xk=[function(){var t=this._self._c;return t("button",{staticClass:"close",staticStyle:{position:"absolute",top:"0",right:"0",padding:"30px"},attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[t("span",{attrs:{"aria-hidden":"true"}},[this._v("×")])])}],n._withStripped=!0},7790:(t,e)=>{"use strict";e.xk=e.sY=void 0;var n=e.sY=function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal fade",attrs:{id:"flag-edit-modal",tabindex:"-1"}},[e("div",{staticClass:"modal-dialog modal-lg"},[e("div",{staticClass:"modal-content"},[e("div",{staticClass:"modal-header text-center"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-12"},[e("h3",{staticClass:"text-center"},[t._v(t._s(t.language("Edit Flag","编辑Flag")))])])])]),t._v(" "),t._m(0)]),t._v(" "),e("div",{staticClass:"modal-body"},[e("form",{attrs:{method:"POST"},domProps:{innerHTML:t._s(t.editForm)},on:{submit:function(e){return e.preventDefault(),t.updateFlag.apply(null,arguments)}}})])])])])};e.xk=[function(){var t=this._self._c;return t("button",{staticClass:"close",staticStyle:{position:"absolute",top:"0",right:"0",padding:"30px"},attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[t("span",{attrs:{"aria-hidden":"true"}},[this._v("×")])])}],n._withStripped=!0},59228:(t,e)=>{"use strict";e.xk=e.sY=void 0;var n=e.sY=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("FlagCreationForm",{ref:"FlagCreationForm",attrs:{challenge_id:t.challenge_id},on:{refreshFlags:t.refreshFlags}})],1),t._v(" "),e("div",[e("FlagEditForm",{ref:"FlagEditForm",attrs:{flag_id:t.editing_flag_id},on:{refreshFlags:t.refreshFlags}})],1),t._v(" "),e("table",{staticClass:"table table-striped",attrs:{id:"flagsboard"}},[e("thead",[e("tr",[e("td",{staticClass:"text-center"},[e("b",[t._v(t._s(t.language("Type","类型")))])]),t._v(" "),e("td",{staticClass:"text-center"},[e("b",[t._v(t._s(t.language("Flag","Flag")))])]),t._v(" "),e("td",{staticClass:"text-center"},[e("b",[t._v(t._s(t.language("Settings","操作")))])])])]),t._v(" "),e("tbody",t._l(t.flags,(function(n){return e("tr",{key:n.id,attrs:{name:n.id}},[e("td",{staticClass:"text-center"},[t._v(t._s(n.type))]),t._v(" "),e("td",{staticClass:"text-break"},[e("pre",{staticClass:"flag-content"},[t._v(t._s(n.content))])]),t._v(" "),e("td",{staticClass:"text-center"},[e("i",{staticClass:"btn-fa fas fa-edit edit-flag",attrs:{role:"button","flag-id":n.id,"flag-type":n.type},on:{click:function(e){return t.editFlag(n.id)}}}),t._v(" "),e("i",{staticClass:"btn-fa fas fa-times delete-flag",attrs:{role:"button","flag-id":n.id},on:{click:function(e){return t.deleteFlag(n.id)}}})])])})),0)]),t._v(" "),e("div",{staticClass:"col-md-12"},[e("button",{staticClass:"btn btn-success d-inline-block float-right",attrs:{id:"flag-add-button"},on:{click:function(e){return t.addFlag()}}},[t._v("\n      "+t._s(t.language("Create Flag","创建Flag"))+"\n    ")])])])};e.xk=[],n._withStripped=!0},70346:(t,e)=>{"use strict";e.xk=e.sY=void 0;var n=e.sY=function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal fade",attrs:{tabindex:"-1"}},[e("div",{staticClass:"modal-dialog"},[e("div",{staticClass:"modal-content"},[e("div",{staticClass:"modal-header text-center"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-12"},[e("h3",[t._v(t._s(t.language("Create Hint","创建提示")))])])])]),t._v(" "),t._m(0)]),t._v(" "),e("form",{attrs:{method:"POST"},on:{submit:function(e){return e.preventDefault(),t.submitHint.apply(null,arguments)}}},[e("div",{staticClass:"modal-body"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-12"},[e("div",{staticClass:"form-group"},[e("label",[t._v("\n                    "+t._s(t.language("Hint:","提示内容："))),e("br"),t._v(" "),e("small",[t._v(t._s(t.language("Markdown & HTML are supported","支持Markdown & HTML")))])]),t._v(" "),e("textarea",{ref:"content",staticClass:"form-control markdown",attrs:{type:"text",name:"content",rows:"7"}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v("\n                    "+t._s(t.language("Cost:","解锁花费："))),e("br"),t._v(" "),e("small",[t._v(t._s(t.language("How many points it costs to see your hint.","需要多少积分才能看到你的提示。")))])]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.cost,expression:"cost",modifiers:{lazy:!0}}],staticClass:"form-control",attrs:{type:"number",name:"cost"},domProps:{value:t.cost},on:{change:function(e){t.cost=e.target.value}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticStyle:{"word-break":"break-all"}},[t._v("\n                    "+t._s(t.language("Requirements:","前置要求："))),e("br"),t._v(" "),e("small",[t._v("\n                      "+t._s(t.language("Hints that must be unlocked before unlocking this hint","解锁此提示之前必须先解锁的提示"))+"\n                    ")])]),t._v(" "),t._l(t.hints,(function(n){return e("div",{key:n.id,staticClass:"form-check"},[e("label",{staticClass:"form-check-label cursor-pointer",staticStyle:{"word-break":"break-all"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedHints,expression:"selectedHints"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{value:n.id,checked:Array.isArray(t.selectedHints)?t._i(t.selectedHints,n.id)>-1:t.selectedHints},on:{change:function(e){var r=t.selectedHints,a=e.target,i=!!a.checked;if(Array.isArray(r)){var o=n.id,s=t._i(r,o);a.checked?s<0&&(t.selectedHints=r.concat([o])):s>-1&&(t.selectedHints=r.slice(0,s).concat(r.slice(s+1)))}else t.selectedHints=i}}}),t._v("\n                      ID: "+t._s(n.id)+" - "+t._s(t.language("Content:","内容："))+t._s(n.content)+" - "+t._s(t.language("Cost:","花费："))+t._s(n.cost)+"\n                    ")])])}))],2),t._v(" "),e("input",{attrs:{type:"hidden",id:"hint-id-for-hint",name:"id"}})])])])]),t._v(" "),e("div",{staticClass:"modal-footer"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-12"},[e("button",{staticClass:"btn btn-primary float-right"},[t._v(t._s(t.language("Submit","提交")))])])])])])])])])])};e.xk=[function(){var t=this._self._c;return t("button",{staticClass:"close",staticStyle:{position:"absolute",top:"0",right:"0",padding:"30px"},attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[t("span",{attrs:{"aria-hidden":"true"}},[this._v("×")])])}],n._withStripped=!0},94232:(t,e)=>{"use strict";e.xk=e.sY=void 0;var n=e.sY=function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal fade",attrs:{tabindex:"-1"}},[e("div",{staticClass:"modal-dialog"},[e("div",{staticClass:"modal-content"},[e("div",{staticClass:"modal-header text-center"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-12"},[e("h3",[t._v(t._s(t.language("Edit Hint","编辑提示")))])])])]),t._v(" "),t._m(0)]),t._v(" "),e("form",{attrs:{method:"POST"},on:{submit:function(e){return e.preventDefault(),t.updateHint.apply(null,arguments)}}},[e("div",{staticClass:"modal-body"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-12"},[e("div",{staticClass:"form-group"},[e("label",[t._v("\n                    "+t._s(t.language("Hint:","提示内容："))),e("br"),t._v(" "),e("small",[t._v(t._s(t.language("Markdown & HTML are supported","支持Markdown & HTML")))])]),t._v(" "),e("textarea",{ref:"content",staticClass:"form-control",attrs:{type:"text",name:"content",rows:"7"},domProps:{value:this.content}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v("\n                    "+t._s(t.language("Cost:","解锁花费："))),e("br"),t._v(" "),e("small",[t._v(t._s(t.language("How many points it costs to see your hint.","需要多少积分才能看到你的提示。")))])]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.cost,expression:"cost",modifiers:{lazy:!0}}],staticClass:"form-control",attrs:{type:"number",name:"cost"},domProps:{value:t.cost},on:{change:function(e){t.cost=e.target.value}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v("\n                    "+t._s(t.language("Requirements:","前置要求："))),e("br"),t._v(" "),e("small",[t._v("\n                      "+t._s(t.language("Hints that must be unlocked before unlocking this hint","解锁此提示之前必须先解锁的提示"))+"\n                    ")])]),t._v(" "),t._l(t.otherHints,(function(n){return e("div",{key:n.id,staticClass:"form-check"},[e("label",{staticClass:"form-check-label cursor-pointer",staticStyle:{"word-break":"break-all"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedHints,expression:"selectedHints"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{value:n.id,checked:Array.isArray(t.selectedHints)?t._i(t.selectedHints,n.id)>-1:t.selectedHints},on:{change:function(e){var r=t.selectedHints,a=e.target,i=!!a.checked;if(Array.isArray(r)){var o=n.id,s=t._i(r,o);a.checked?s<0&&(t.selectedHints=r.concat([o])):s>-1&&(t.selectedHints=r.slice(0,s).concat(r.slice(s+1)))}else t.selectedHints=i}}}),t._v("\n                      ID: "+t._s(n.id)+" - "+t._s(t.language("Content:","内容："))+t._s(n.content)+" - "+t._s(t.language("Cost:","花费："))+t._s(n.cost)+"\n                    ")])])}))],2)])])])]),t._v(" "),e("div",{staticClass:"modal-footer"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-12"},[e("button",{staticClass:"btn btn-primary float-right"},[t._v(t._s(t.language("Submit","提交")))])])])])])])])])])};e.xk=[function(){var t=this._self._c;return t("button",{staticClass:"close",staticStyle:{position:"absolute",top:"0",right:"0",padding:"30px"},attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[t("span",{attrs:{"aria-hidden":"true"}},[this._v("×")])])}],n._withStripped=!0},70220:(t,e)=>{"use strict";e.xk=e.sY=void 0;var n=e.sY=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("HintCreationForm",{ref:"HintCreationForm",attrs:{challenge_id:t.challenge_id,hints:t.hints},on:{refreshHints:t.refreshHints}})],1),t._v(" "),e("div",[e("HintEditForm",{ref:"HintEditForm",attrs:{challenge_id:t.challenge_id,hint_id:t.editing_hint_id,hints:t.hints},on:{refreshHints:t.refreshHints}})],1),t._v(" "),e("table",{staticClass:"table table-striped"},[e("thead",[e("tr",[e("td",{staticClass:"text-center"},[e("b",[t._v(t._s(t.language("ID","ID")))])]),t._v(" "),e("td",{staticClass:"text-center"},[e("b",[t._v(t._s(t.language("Hint","提示内容")))])]),t._v(" "),e("td",{staticClass:"text-center"},[e("b",[t._v(t._s(t.language("Cost","解锁花费")))])]),t._v(" "),e("td",{staticClass:"text-center"},[e("b",[t._v(t._s(t.language("Settings","操作")))])])])]),t._v(" "),e("tbody",t._l(t.hints,(function(n){return e("tr",{key:n.id},[e("td",{staticClass:"text-center"},[t._v(t._s(n.id))]),t._v(" "),e("td",{staticClass:"text-break",staticStyle:{"word-wrap":"break-word","word-break":"break-word"}},[e("pre",[t._v(t._s(n.content))])]),t._v(" "),e("td",{staticClass:"text-center"},[t._v(t._s(n.cost))]),t._v(" "),e("td",{staticClass:"text-center"},[e("i",{staticClass:"btn-fa fas fa-edit",attrs:{role:"button"},on:{click:function(e){return t.editHint(n.id)}}}),t._v(" "),e("i",{staticClass:"btn-fa fas fa-times",attrs:{role:"button"},on:{click:function(e){return t.deleteHint(n.id)}}})])])})),0)]),t._v(" "),e("div",{staticClass:"col-md-12"},[e("button",{staticClass:"btn btn-success float-right",on:{click:t.addHint}},[t._v("\n      "+t._s(t.language("Create Hint","创建提示"))+"\n    ")])])])};e.xk=[],n._withStripped=!0},99116:(t,e)=>{"use strict";e.xk=e.sY=void 0;var n=e.sY=function(){var t=this,e=t._self._c;return e("div",[e("form",{on:{submit:function(e){return e.preventDefault(),t.updateNext.apply(null,arguments)}}},[e("div",{staticClass:"form-group"},[e("label",[t._v("\n        "+t._s(t.language("Next Challenge","下一题"))+"\n        "),e("br"),t._v(" "),e("small",{staticClass:"text-muted"},[t._v(t._s(t.language("Challenge to recommend after solving this challenge","解决此题目后推荐的题目")))])]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.selected_id,expression:"selected_id"}],staticClass:"form-control custom-select",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.selected_id=e.target.multiple?n:n[0]}}},[e("option",{attrs:{value:"null"}},[t._v(" -- ")]),t._v(" "),t._l(t.otherChallenges,(function(n){return e("option",{key:n.id,domProps:{value:n.id}},[t._v(t._s(n.name))])}))],2)]),t._v(" "),e("div",{staticClass:"form-group"},[e("button",{staticClass:"btn btn-success float-right",attrs:{disabled:!t.updateAvailable}},[t._v("\n        "+t._s(t.language("Save","保存"))+"\n      ")])])])])};e.xk=[],n._withStripped=!0},82290:(t,e)=>{"use strict";e.xk=e.sY=void 0;var n=e.sY=function(){var t=this,e=t._self._c;return e("div",{staticClass:"card bg-light mb-4"},[e("button",{staticClass:"delete-notification close position-absolute p-3",staticStyle:{right:"0"},attrs:{type:"button","data-notif-id":this.id,"data-dismiss":"alert","aria-label":"Close"},on:{click:function(e){return t.deleteNotification()}}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])]),t._v(" "),e("div",{staticClass:"card-body"},[e("h3",{staticClass:"card-title"},[t._v(t._s(t.title))]),t._v(" "),e("blockquote",{staticClass:"blockquote mb-0"},[e("p",{domProps:{innerHTML:t._s(this.html)}}),t._v(" "),e("small",{staticClass:"text-muted"},[e("span",{attrs:{"data-time":this.date}},[t._v(t._s(this.localDate()))])])])])])};e.xk=[],n._withStripped=!0},32681:(t,e)=>{"use strict";e.xk=e.sY=void 0;var n=e.sY=function(){var t=this,e=t._self._c;return e("div",[e("form",{on:{submit:function(e){return e.preventDefault(),t.updateRequirements.apply(null,arguments)}}},[e("div",{staticClass:"form-group scrollbox"},[e("transition-group",{attrs:{name:"flip-list"}},[t._l(t.requiredChallenges,(function(n){return e("div",{key:n.id,staticClass:"form-check"},[e("label",{staticClass:"form-check-label cursor-pointer"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedRequirements,expression:"selectedRequirements"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{value:n.id,checked:Array.isArray(t.selectedRequirements)?t._i(t.selectedRequirements,n.id)>-1:t.selectedRequirements},on:{change:function(e){var r=t.selectedRequirements,a=e.target,i=!!a.checked;if(Array.isArray(r)){var o=n.id,s=t._i(r,o);a.checked?s<0&&(t.selectedRequirements=r.concat([o])):s>-1&&(t.selectedRequirements=r.slice(0,s).concat(r.slice(s+1)))}else t.selectedRequirements=i}}}),t._v("\n            "+t._s(n.name)+"\n          ")])])})),t._v(" "),t._l(t.otherChallenges,(function(n){return e("div",{key:n.id,staticClass:"form-check"},[e("label",{staticClass:"form-check-label cursor-pointer"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedRequirements,expression:"selectedRequirements"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{value:n.id,checked:Array.isArray(t.selectedRequirements)?t._i(t.selectedRequirements,n.id)>-1:t.selectedRequirements},on:{change:function(e){var r=t.selectedRequirements,a=e.target,i=!!a.checked;if(Array.isArray(r)){var o=n.id,s=t._i(r,o);a.checked?s<0&&(t.selectedRequirements=r.concat([o])):s>-1&&(t.selectedRequirements=r.slice(0,s).concat(r.slice(s+1)))}else t.selectedRequirements=i}}}),t._v("\n            "+t._s(n.name)+"\n          ")])])}))],2)],1),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[e("b",[t._v(t._s(t.language("Behavior if not unlocked","未解锁时的显示方式")))])]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedAnonymize,expression:"selectedAnonymize"}],staticClass:"form-control custom-select",attrs:{name:"anonymize"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.selectedAnonymize=e.target.multiple?n:n[0]}}},[e("option",{domProps:{value:!1}},[t._v(t._s(t.language("Hidden","隐藏")))]),t._v(" "),e("option",{domProps:{value:!0}},[t._v(t._s(t.language("Anonymized","匿名 ")))])])]),t._v(" "),e("div",{staticClass:"form-group"},[e("button",{staticClass:"btn btn-success float-right",attrs:{disabled:!t.newRequirements}},[t._v("\n        "+t._s(t.language("Save","保存"))+"\n      ")])])])])};e.xk=[],n._withStripped=!0},88945:(t,e)=>{"use strict";e.xk=e.sY=void 0;var n=e.sY=function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-md-12"},[e("div",{staticClass:"my-3",attrs:{id:"challenge-tags"}},t._l(t.tags,(function(n){return e("span",{key:n.id,staticClass:"badge badge-primary mx-1 challenge-tag"},[e("span",[t._v(t._s(n.value))]),t._v(" "),e("a",{staticClass:"btn-fa delete-tag",on:{click:function(e){return t.deleteTag(n.id)}}},[t._v(" ×")])])})),0),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.language("Tag","标签"))+"\n      "),e("br"),t._v(" "),e("small",{staticClass:"text-muted"},[t._v(t._s(t.language("Type tag and press Enter","输入标签并按 Enter 键")))])]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.tagValue,expression:"tagValue",modifiers:{lazy:!0}}],staticClass:"form-control",attrs:{id:"tags-add-input",maxlength:"80",type:"text"},domProps:{value:t.tagValue},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.addTag()},change:function(e){t.tagValue=e.target.value}}})])])};e.xk=[],n._withStripped=!0},92275:(t,e)=>{"use strict";e.xk=e.sY=void 0;var n=e.sY=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.language("Search Users","查找用户")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchedName,expression:"searchedName"}],staticClass:"form-control",attrs:{type:"text",placeholder:t.language("Search for users","搜索用户")},domProps:{value:t.searchedName},on:{keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:t.moveCursor("down")},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:t.moveCursor("up")},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.selectUser()}],input:function(e){e.target.composing||(t.searchedName=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},t._l(t.selectedUsers,(function(n){return e("span",{key:n.id,staticClass:"badge badge-primary mr-1"},[t._v("\n      "+t._s(n.name)+"\n      "),e("a",{staticClass:"btn-fa",on:{click:function(e){return t.removeSelectedUser(n.id)}}},[t._v(" ×")])])})),0),t._v(" "),e("div",{staticClass:"form-group"},[0==t.userResults.length&&""!=this.searchedName&&0==t.awaitingSearch?e("div",{staticClass:"text-center"},[e("span",{staticClass:"text-muted"},[t._v("\n        "+t._s(t.language("No users found","找不到该用户"))+"\n      ")])]):t._e(),t._v(" "),e("ul",{staticClass:"list-group"},t._l(t.userResults,(function(n,r){return e("li",{key:n.id,class:{"list-group-item":!0,active:r===t.selectedResultIdx},on:{click:function(e){return t.selectUser(r)}}},[t._v("\n        "+t._s(n.name)+"\n        "),n.team_id?e("small",{class:{"float-right":!0,"text-white":r===t.selectedResultIdx,"text-muted":r!==t.selectedResultIdx}},[t._v("\n          "+t._s(t.language("already in a team","用户已经在一个队伍里了"))+"\n        ")]):t._e()])})),0)]),t._v(" "),e("div",{staticClass:"form-group"},[e("button",{staticClass:"btn btn-success d-inline-block float-right",on:{click:function(e){return t.addUsers()}}},[t._v("\n      "+t._s(t.language("Add Users","添加用户"))+"\n    ")])])])};e.xk=[],n._withStripped=!0},47123:(t,e)=>{"use strict";e.xk=e.sY=void 0;var n=e.sY=function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-md-12"},[e("div",{staticClass:"my-3",attrs:{id:"challenge-topics"}},t._l(t.topics,(function(n){return e("h5",{key:n.id,staticClass:"challenge-tag"},[e("span",{staticClass:"mr-1"},[t._v(t._s(n.value))]),t._v(" "),e("a",{staticClass:"btn-fa delete-tag",on:{click:function(e){return t.deleteTopic(n.id)}}},[t._v(" ×")])])})),0),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v("\n      "+t._s(t.language("Topic","话题"))+"\n      "),e("br"),t._v(" "),e("small",{staticClass:"text-muted"},[t._v(t._s(t.language("Type topic and press Enter","输入话题并按 Enter")))])]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.topicValue,expression:"topicValue"}],staticClass:"form-control",attrs:{id:"tags-add-input",maxlength:"255",type:"text"},domProps:{value:t.topicValue},on:{keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:t.moveCursor("down")},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:t.moveCursor("up")},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.addTopic()}],input:function(e){e.target.composing||(t.topicValue=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("ul",{staticClass:"list-group"},t._l(t.topicResults,(function(n,r){return e("li",{key:n.id,class:{"list-group-item":!0,active:r+1===t.selectedResultIdx},on:{click:function(e){return t.selectTopic(r)}}},[t._v("\n        "+t._s(n.value)+"\n      ")])})),0)])])};e.xk=[],n._withStripped=!0},38510:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(41675),a=n.n(r),i=n(95250),o=n.n(i)()(a());o.push([t.id,"\n.card .close[data-v-5430a4fa] {\n  opacity: 0;\n  transition: 0.2s;\n}\n.card:hover .close[data-v-5430a4fa] {\n  opacity: 0.5;\n}\n.close[data-v-5430a4fa]:hover {\n  opacity: 0.75 !important;\n}\n.comment-card-leave[data-v-5430a4fa] {\n  max-height: 200px;\n}\n.comment-card-leave-to[data-v-5430a4fa] {\n  max-height: 0;\n}\n.comment-card-active[data-v-5430a4fa] {\n  position: absolute;\n}\n.comment-card-enter-active[data-v-5430a4fa],\n.comment-card-move[data-v-5430a4fa],\n.comment-card-leave-active[data-v-5430a4fa] {\n  transition: all 0.3s;\n}\n",""]);const s=/^(154|235|38|963)$/.test(n.j)?o:null},55713:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(41675),a=n.n(r),i=n(95250),o=n.n(i)()(a());o.push([t.id,"\n.flip-list-move[data-v-8d1a4668] {\n  transition: transform 0.5s ease;\n}\n\n/* https://stackoverflow.com/a/34299947 */\n/* https://dabblet.com/gist/2462915 */\n/* https://lea.verou.me/2012/04/background-attachment-local/ */\n/* magical CSS rules for scrolling indication without scrollbar */\n/* prettier-ignore */\n.scrollbox[data-v-8d1a4668] {\n\toverflow: auto;\n\tmax-height: 40vh;\n\n\tbackground:\n\t\t/* Shadow covers */\n\t\tlinear-gradient(white 30%, rgba(255,255,255,0)),\n\t\tlinear-gradient(rgba(255,255,255,0), white 70%) 0 100%,\n\n\t\t/* Shadows */\n\t\tradial-gradient(50% 0, farthest-side, rgba(0,0,0,.2), rgba(0,0,0,0)),\n\t\tradial-gradient(50% 100%,farthest-side, rgba(0,0,0,.2), rgba(0,0,0,0)) 0 100%;\n\tbackground:\n\t\t/* Shadow covers */\n\t\tlinear-gradient(white 30%, rgba(255,255,255,0)),\n\t\tlinear-gradient(rgba(255,255,255,0), white 70%) 0 100%,\n\n\t\t/* Shadows */\n\t\tradial-gradient(farthest-side at 50% 0, rgba(0,0,0,.2), rgba(0,0,0,0)),\n\t\tradial-gradient(farthest-side at 50% 100%, rgba(0,0,0,.2), rgba(0,0,0,0)) 0 100%;\n\tbackground-repeat: no-repeat;\n\tbackground-color: white;\n\tbackground-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;\n\n\t/* Opera doesn't support this in the shorthand */\n\tbackground-attachment: local, local, scroll, scroll;\n}\n",""]);const s=963==n.j?o:null},43741:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__esModule:()=>a.X,default:()=>o});var r=n(4689),a=n(99152);const i=a.Z;n(60768);const o=(0,n(51900).Z)(i,r.sY,r.xk,!1,null,"5430a4fa",null).exports},78987:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__esModule:()=>a.X,default:()=>o});var r=n(59021),a=n(78081);const i=a.Z,o=(0,n(51900).Z)(i,r.sY,r.xk,!1,null,"3cb22c85",null).exports},5733:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__esModule:()=>a.X,default:()=>o});var r=n(99266),a=n(53328);const i=a.Z,o=(0,n(51900).Z)(i,r.sY,r.xk,!1,null,null,null).exports},45244:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__esModule:()=>a.X,default:()=>o});var r=n(65636),a=n(52204);const i=a.Z,o=(0,n(51900).Z)(i,r.sY,r.xk,!1,null,"3f37253a",null).exports},45763:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__esModule:()=>a.X,default:()=>o});var r=n(66412),a=n(55546);const i=a.Z,o=(0,n(51900).Z)(i,r.sY,r.xk,!1,null,null,null).exports},84790:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__esModule:()=>a.X,default:()=>o});var r=n(6632),a=n(42774);const i=a.Z,o=(0,n(51900).Z)(i,r.sY,r.xk,!1,null,"c7933844",null).exports},26314:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__esModule:()=>a.X,default:()=>o});var r=n(7790),a=n(22584);const i=a.Z,o=(0,n(51900).Z)(i,r.sY,r.xk,!1,null,"6bdc1f50",null).exports},73268:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__esModule:()=>a.X,default:()=>o});var r=n(59228),a=n(6284);const i=a.Z,o=(0,n(51900).Z)(i,r.sY,r.xk,!1,null,"8e5c5016",null).exports},99650:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__esModule:()=>a.X,default:()=>o});var r=n(70346),a=n(41270);const i=a.Z,o=(0,n(51900).Z)(i,r.sY,r.xk,!1,null,"1a5315c4",null).exports},73225:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__esModule:()=>a.X,default:()=>o});var r=n(94232),a=n(12240);const i=a.Z,o=(0,n(51900).Z)(i,r.sY,r.xk,!1,null,"297fff8e",null).exports},82628:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__esModule:()=>a.X,default:()=>o});var r=n(70220),a=n(9307);const i=a.Z,o=(0,n(51900).Z)(i,r.sY,r.xk,!1,null,"b3c81040",null).exports},18862:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__esModule:()=>a.X,default:()=>o});var r=n(99116),a=n(53259);const i=a.Z,o=(0,n(51900).Z)(i,r.sY,r.xk,!1,null,"53c26df6",null).exports},92897:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__esModule:()=>a.X,default:()=>o});var r=n(82290),a=n(98532);const i=a.Z,o=(0,n(51900).Z)(i,r.sY,r.xk,!1,null,null,null).exports},22794:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__esModule:()=>a.X,default:()=>o});var r=n(32681),a=n(75328);const i=a.Z;n(31285);const o=(0,n(51900).Z)(i,r.sY,r.xk,!1,null,"8d1a4668",null).exports},9242:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__esModule:()=>a.X,default:()=>o});var r=n(88945),a=n(93213);const i=a.Z,o=(0,n(51900).Z)(i,r.sY,r.xk,!1,null,"46bdff44",null).exports},82172:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__esModule:()=>a.X,default:()=>o});var r=n(92275),a=n(50191);const i=a.Z,o=(0,n(51900).Z)(i,r.sY,r.xk,!1,null,"66a1db50",null).exports},69626:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__esModule:()=>a.X,default:()=>o});var r=n(47123),a=n(85515);const i=a.Z,o=(0,n(51900).Z)(i,r.sY,r.xk,!1,null,"0f34dde3",null).exports},60768:(t,e,n)=>{var r=n(38510);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(87913).Z)("38de8a26",r,!1,{})},31285:(t,e,n)=>{var r=n(55713);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(87913).Z)("274b7683",r,!1,{})}}]);